list1=[]
for i in range(2,10001):
   list1.append(i)

for i in list1:
   for j in range(2,101):
      if i % j==0 and i != j:
       list1.pop(i)


print(list1)


